package com.wuren.faceSwiping.WXyanzheng;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;

@RequestMapping("/api/gettoken")
@RestController
public class WXyanzhengServise {
    @RequestMapping("/list")
    public String gettonken(HttpServletRequest request) {
        Enumeration<String> parameterNames = request.getParameterNames();
        while (parameterNames.hasMoreElements()) {
            String key = parameterNames.nextElement();
        }
        String echostr = request.getParameter("echostr");
        String encrypt_type = request.getParameter("encrypt_type");
        String msg_signature = request.getParameter("msg_signature");
        return echostr;
    }
}
